package com.smart.campus.interfaces;

import com.smart.campus.dto.SecurityGuard;
import com.smart.campus.pojo.PagedResponse;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @BelongsProject: smart-campus
 * @BelongsPackage: com.smart.campus.interfaces
 * @Author: Y S Z
 * @CreateTime: 2024-10-07  11:03
 * @Description: TODO
 * @Version: 1.0
 */
public interface SecurityGuardApi {
    @RequestMapping(value = "guard/findSecurityGuardList")
    public List<SecurityGuard> findSecurityGuardList();

    @RequestMapping(value = "guard/pageSecurityGuard")
    public PagedResponse<SecurityGuard> pageSecurityGuard(@RequestBody SecurityGuard securityGuard, @RequestParam(value = "pageNum")Integer pageNum, @RequestParam(value = "pageSize")Integer pageSize);

    @RequestMapping(value = "guard/addSecurityGuard")
    public void addSecurityGuard(@RequestBody SecurityGuard securityGuard);

    @RequestMapping(value = "guard/delSecurityGuard")
    public void delSecurityGuard(@RequestParam(value = "id")Long id);

    @RequestMapping(value = "guard/findSecurityGuardById")
    public SecurityGuard findSecurityGuardById(@RequestParam(value = "id")Long id);

    @RequestMapping(value = "guard/updSecurityGuard")
    public void updSecurityGuard(@RequestBody SecurityGuard securityGuard);
}
